/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author ThinkGem
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { TreeModel } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface Desktop extends TreeModel<Desktop> {
  
}

export const preCollectionCensus = (params?: Desktop | any) =>
  defHttp.post<Desktop>({ url: adminPath + '/report/indexData/preCollectionCensus', params });

export const getHospTypeCensus = (params?: Desktop | any) =>
  defHttp.post<Desktop>({ url: adminPath + '/report/indexData/getHospTypeCensus', params });

export const getConstractCensus = (params?: Desktop | any) =>
  defHttp.post<Desktop>({ url: adminPath + '/report/indexData/getConstractCensus', params });

export const getShQtyCensus = (params?: Desktop | any) =>
  defHttp.post<Desktop>({ url: adminPath + '/report/indexData/getShQtyCensus', params });

export const getPreQtyCensus = (params?: Desktop | any) =>
  defHttp.post<Desktop>({ url: adminPath + '/report/indexData/getPreQtyCensus', params });

export const areaTreeData = (params?: Desktop | any) =>
  defHttp.post<Desktop>({ url: adminPath + '/report/indexData/areaTreeData', params });
